.class Lcom/waiqin365/base/login/br;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/hyphenate/EMCallBack;


# instance fields
.field final synthetic a:Ljava/lang/String;

.field final synthetic b:Lcom/waiqin365/base/login/LoginMainActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/base/login/LoginMainActivity;Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    iput-object p2, p0, Lcom/waiqin365/base/login/br;->a:Ljava/lang/String;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onError(ILjava/lang/String;)V
    .locals 4

    const v3, 0x7f080301

    iget-object v0, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/waiqin365/base/login/LoginMainActivity;->isDisConnected:Z

    const-string/jumbo v0, "IM"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onError||||||code:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    const/4 v0, 0x0

    sput-boolean v0, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b:Z

    iget-object v0, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    # invokes: Lcom/waiqin365/base/login/LoginMainActivity;->dismissProgressDialog()V
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$900(Lcom/waiqin365/base/login/LoginMainActivity;)V

    packed-switch p1, :pswitch_data_0

    :pswitch_0
    iget-object v0, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v1, 0x7f080302

    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/waiqin365/base/login/LoginMainActivity;->loginErrorInfo:Ljava/lang/String;

    :goto_0
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    const/16 v1, 0x131

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->handler:Landroid/os/Handler;
    invoke-static {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2000(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void

    :pswitch_1
    iget-object v0, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/waiqin365/base/login/LoginMainActivity;->loginErrorInfo:Ljava/lang/String;

    goto :goto_0

    :pswitch_2
    iget-object v0, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    invoke-virtual {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcom/waiqin365/base/login/LoginMainActivity;->loginErrorInfo:Ljava/lang/String;

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0xcc
        :pswitch_1
        :pswitch_0
        :pswitch_0
        :pswitch_2
    .end packed-switch
.end method

.method public onProgress(ILjava/lang/String;)V
    .locals 3

    const-string/jumbo v0, "IM"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v2, "onProgress||||||code:"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public onSuccess()V
    .locals 3

    const/4 v2, 0x1

    iget-object v0, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    iput-boolean v2, v0, Lcom/waiqin365/base/login/LoginMainActivity;->isDisConnected:Z

    const-string/jumbo v0, "IM"

    const-string/jumbo v1, "onSuccess|||||success"

    invoke-static {v0, v1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->groupManager()Lcom/hyphenate/chat/EMGroupManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMGroupManager;->loadAllGroups()V

    invoke-static {}, Lcom/hyphenate/chat/EMClient;->getInstance()Lcom/hyphenate/chat/EMClient;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMClient;->chatManager()Lcom/hyphenate/chat/EMChatManager;

    move-result-object v0

    invoke-virtual {v0}, Lcom/hyphenate/chat/EMChatManager;->loadAllConversations()V

    invoke-static {}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b()Lcom/fiberhome/gaea/client/base/ExmobiApp;

    move-result-object v0

    iget-object v1, p0, Lcom/waiqin365/base/login/br;->a:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b(Ljava/lang/String;)V

    sput-boolean v2, Lcom/fiberhome/gaea/client/base/ExmobiApp;->b:Z

    iget-object v0, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    const/4 v1, 0x0

    # setter for: Lcom/waiqin365/base/login/LoginMainActivity;->isConflict:Z
    invoke-static {v0, v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$1002(Lcom/waiqin365/base/login/LoginMainActivity;Z)Z

    iget-object v0, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    # invokes: Lcom/waiqin365/base/login/LoginMainActivity;->dismissProgressDialog()V
    invoke-static {v0}, Lcom/waiqin365/base/login/LoginMainActivity;->access$900(Lcom/waiqin365/base/login/LoginMainActivity;)V

    new-instance v0, Lcom/waiqin365/base/login/cs;

    iget-object v1, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    iget-object v2, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->handler:Landroid/os/Handler;
    invoke-static {v2}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2000(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/os/Handler;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/waiqin365/base/login/cs;-><init>(Lcom/waiqin365/base/login/LoginMainActivity;Landroid/os/Handler;)V

    invoke-virtual {v0}, Lcom/waiqin365/base/login/cs;->start()V

    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    const/16 v1, 0x132

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v1, p0, Lcom/waiqin365/base/login/br;->b:Lcom/waiqin365/base/login/LoginMainActivity;

    # getter for: Lcom/waiqin365/base/login/LoginMainActivity;->handler:Landroid/os/Handler;
    invoke-static {v1}, Lcom/waiqin365/base/login/LoginMainActivity;->access$2000(Lcom/waiqin365/base/login/LoginMainActivity;)Landroid/os/Handler;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    return-void
.end method
